package com.doufeng.order.feign;

import com.doufeng.common.dto.dispatch.TaskCreateDTO;
import com.doufeng.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "life-dispatch-svc", path = "/dispatch/inner")
public interface DispatchClient {

    /**
     * 创建可抢任务 + Geo 索引
     */
    @PostMapping("/task")
    Result<Long> createTask(@RequestBody TaskCreateDTO dto);
}
